<?php

class ErrorMessage {
    //put your code here
    private $values;
    
    public function __construct() {
        $this->values = array();
    }
    
    public function addValue($msg){
        $this->values[] = $msg;
    }
    
    public function getValues(){
        return $this->values;
    }
    
    public function hasError(){
        return count($this->values) > 0;
    }
}
